package com.anolesoft.amljmes.billing.service.impl;

//import com.anolesoft.common.core.domain.LoginUser;
//import com.anolesoft.common.security.util.SecurityUtils;
//import com.anolesoft.yr.mbus.util.GlobalLoginInfo;
import com.anolesoft.amljmes.billing.controller.CategoryInfoController;
import com.anolesoft.amljmes.billing.dto.CategoryInfoDto;
import com.anolesoft.amljmes.billing.service.CategoryInfoService;
import com.anolesoft.amljmes.billing.service.mapper.CategoryInfoServiceMapper;
//import com.anolesoft.yr.util.PageData;
//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CategoryInfoServiceImpl implements CategoryInfoService{
    @Autowired
    CategoryInfoServiceMapper categoryInfoServiceMapper;

    @Override
    public List<CategoryInfoDto> queryCategoryInfo(CategoryInfoController.DemoVO demoVO) {
        List<CategoryInfoDto> queryCategoryDTto=categoryInfoServiceMapper.queryCategorySQL(demoVO);
        return queryCategoryDTto;
    }

    @Override
    public int addCategory(CategoryInfoDto inFoDtoParam) {
        int count = categoryInfoServiceMapper.addCategory(inFoDtoParam);
        return count;
    }

    @Override
    public int updateCategory(CategoryInfoDto inFoDtoParam) {
        int count = categoryInfoServiceMapper.updateCategory(inFoDtoParam);
        return count;
    }

    @Override
    public int deleteCategory(CategoryInfoDto inFoDtoParam) {
        int count = categoryInfoServiceMapper.deleteCategory(inFoDtoParam);
        return count;
    }

    @Override
    public int isCategoryName(CategoryInfoDto inFoDtoPara) {
        int count = categoryInfoServiceMapper.isCategoryName(inFoDtoPara);
        return count;
    }

    @Override
    public List<CategoryInfoDto> CategoryAll() {
        List<CategoryInfoDto> categoryDtoAll=categoryInfoServiceMapper.CategoryAll();
        return categoryDtoAll;
    }
}
